import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import SocketService from './utils/socket_service'
// 对服务器进行链接
SocketService.Instance.connect();
// 挂载到vue原型上
Vue.prototype.$socket = SocketService.Instance
// 引入字体文件
import './assets/font/iconfont.css'
// 引入全局的global.less
import './assets/css/global.less'

// 配置axios
axios.defaults.baseURL = 'http://127.0.0.1:8081/api/'
Vue.prototype.$http = axios
Vue.config.productionTip = false
// 通过this.$echarts使用
Vue.prototype.$echarts = window.echarts

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
